<%--                                                                       --%>
<%-- Copyright (c) 2001-2004 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries.                       --%>
<%--                                                                       --%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/bv-html.tld" prefix="bvhtml" %>

<jsp:useBean id="participantEditView" scope="request" type="com.broadvision.web.util.ViewDynaBean"/> 

<script language="JavaScript">

function clickCancel(theForm) {
  theForm.action='<html:rewrite page="/cs/participantList.do"/>';
  theForm.submit();
}

function clickSave() {
  document.csParticipantEditForm.submit();
}
</script>

<!-- Zone 5 starts here.  -->
      
<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" 
       summary="content area">
  <tr>
    <td valign="top">
    
    <!--start microsite logo and name here-->
      <div class="pageTitle">
        <%@ include file="/cs/microsite/micrositeNaviInfo.jsp" %>
      </div> 
    <!--end microsite logo and name here-->
    
    <!--start title bar here-->
    <div class="pageSubtitle">
      <span class="left">
        <bean:message key="cs.participant.settings"/> 
      </span>
    </div> 
    <!--end title bar here--> 

    <div class="blockWrap">

    <!-- start Page Instructions -->
    <div class="pageInstructions">
      <bean:message key="cs.participant.settings.note"/>
    </div>
    <!-- End Page Instructions -->


    <!-- BEGIN form ( csParticipantEditForm ) -->
    <html:form action="/cs/participantSave.do">
      <bvhtml:hiddenList name="micrositeNaviInfoView" property="urlParams" scope="request"/>
      <!--start main content area here-->
      <table class="labelForm" width="100%" border="0" cellspacing="0" 
           cellpadding="0" summary="Edit Group">
    
        <!-- Display participant -->
        <tr>
          <td width=20% class="label"><bean:message key="cs.user.name"/>:</td>
          <td width=80% class="labelField" colspan=2><bean:write name="participantEditView" property="fullName" /></td>
        </tr>
    
        <tr>
          <td width=20% class="label"><bean:message key="cs.login"/>:</td>
          <td width=80% class="labelField" colspan=2><bean:write name="participantEditView" property="userAlias" /></td>
        </tr>
    
        <tr>
          <td width=20% class="label"><bean:message key="cs.profile.emailaddress"/>:</td>
          <td width=80% class="labelField" colspan=2><bean:write name="participantEditView" property="email" /></td>
        </tr>

        <logic:equal name="participantEditView" property="inContactGroup" value="true">
          <tr>
            <td width=20% class="label"><bean:message key="cs.participant.contact.info"/>:</td>
            <td width=80% class="labelField" colspan=2><html:text property="contactInfo" maxlength="80"/></td>
          </tr>
        </logic:equal>
        
        <tr>
          <td width=20% class="label"><bean:message key="cs.profile.businessphone"/>:</td>
          <td width=80% class="labelField" colspan=2>
            <bean:write name="participantEditView" property="businessPhone"/>
          </td>
        </tr>

        <tr>
          <%-- First one is participant group. --%>
          <td width=20% class="label"><bean:message key="cs.groups"/>:</td>
          <td width=5% class="labelField"><html:img page="/cs/images/icons/cicon_checkmark.gif" altKey="cs.selected"/></td>
          <td width=75% class="labelField"><bean:message key="cs.group.public"/></td>
        </tr>

        <logic:iterate id="oneGroup" name="participantEditView" property="availableGroups" indexId="index">
          <tr>
            <td width=20% class="label">&nbsp;</td>
            <td width=5% class="labelField">
              <html:multibox property="selectedGroupIds">
                <bean:write name="oneGroup" property="value" />
              </html:multibox>
            </td> 
            <td width=75% class="labelField"><bean:write name="oneGroup" property="label" /></td>
          </tr>
        </logic:iterate>
      </table>
    
      <!--start cancel, reset, save bar area here-->
    
      <div class="pageButtonWrap" align="right">
        <html:reset styleClass="pageButton" property="resetBtn" titleKey="button.reset">
          <bean:message key="button.reset"/>
        </html:reset>           
	&nbsp;&nbsp;
        <html:button styleClass="pageButton" property="resetBtn" titleKey="button.cancel"
             onclick="clickCancel(this.form)">
          <bean:message key="button.cancel"/>
        </html:button>                    

        <html:button styleClass="pageButton" property="saveBtn" 
            titleKey="button.save" onclick="clickSave()">
          <bean:message key="button.save" />
        </html:button>
               
      </div>
     
      </div>
     
      <!--end cancel, reset, save bar area here-->
    </html:form>
  </td>
  </tr>
</table>

<!-- END form ( csParticipantEditForm ) -->

